import os
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from ament_index_python.packages import get_package_share_directory

def generate_launch_description():

    camera_dir=get_package_share_directory('hnurm_camera')
    dart_dir=get_package_share_directory('hnurm_dart')
    uart_dir=get_package_share_directory('hnurm_uart')

    return LaunchDescription([
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(os.path.join(camera_dir,'launch','hnurm_camera.launch.py'))
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(os.path.join(dart_dir,'launch','hnurm_dart.launch.py'))
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(os.path.join(uart_dir,'launch','hnurm_uart.launch.py'))
        )
    ])